package com.prabhakar.demo;

public class Rectangle {

	private Dimensions rect1;
	private Dimensions rect2;
	
	public Dimensions getRect1() {
		return rect1;
	}

	public void setRect1(Dimensions rect1) {
		this.rect1 = rect1;
	}

	public Dimensions getRect2() {
		return rect2;
	}

	public void setRect2(Dimensions rect2) {
		this.rect2 = rect2;
	}

	public void draw(){
		System.out.println("Reactangle Drawn...!!!");
		System.out.println(" 1st Rectangle  height="+getRect1().getHeight()+ " width = "+getRect1().getWidth());
		System.out.println(" 2nd Rectangle  height="+getRect2().getHeight()+ " width = "+getRect2().getWidth());
	}
	
}
